import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import './assets/main.css'; // 最后引入自定义样式，以覆盖默认值

import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import { useAccessibilityStore } from './stores/accessibilityStore';

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(createPinia());
const accessibilityStore = useAccessibilityStore();
app.use(router);
app.use(ElementPlus);

app.mount('#app');